package com.dayatang.koala.support;

import java.util.Map;

import javax.rules.admin.LocalRuleExecutionSetProvider;
import javax.rules.admin.RuleExecutionSet;

public class RuleExecutionSetObjectCreator implements RuleExecutionSetCreator {

	public RuleExecutionSet createRuleExecutionSet(Object ruleSource,
			Map ruleProperty,
			LocalRuleExecutionSetProvider ruleExecutionSetProvider)
			throws RuntimeException {
		try {
			return ruleExecutionSetProvider.createRuleExecutionSet(ruleSource,
					ruleProperty);
		} catch (Exception ex) {
			throw new RuntimeException(ex);
		}
	}

}
